import * as Modal from "./modal";
import * as Toast from "./toastMask";

// 设置
export let ToastOption = Toast.option;
export let ModelAlert = Modal.alert;
export let ModelConfirm = Modal.confirm;
export let ModelMessage = Modal.message;

export default function(
  vue,
  {
    // 默认值
    toast = "toast",
    alert = "alert",
    confirm = "confirm",
    message = "message"
  } = {}
) {
  Toast["default"](vue, toast);
  Modal["default"](vue, {
    alertName: alert,
    confirmName: confirm,
    messageName: message
  });
}
